package com.stylefeng.guns.common.persistence.model;

import java.io.Serializable;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author jondai
 * @since 2017-12-21
 */
@TableName("train_employee")
public class Employee extends Model<Employee> implements java.io.Serializable{

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
	@TableId(value="id", type= IdType.UUID)
	private String id;



    /**
     * 员工编码
     */
	@TableField("emp_code")
	@Excel(name = "一级系统ERP编号")
	private String empCode;

	@TableField("erp_code")
	@Excel(name = "二级系统ERP编号")
	private String erpCode;

	/**
	 * 员工姓名
	 */
	@TableField("emp_name")
	@Excel(name = "姓名")
	private String empName;

	@TableField("dept_name")
	@Excel(name = "部门(单位）")
	private String deptName;
    /**
     * 处、室
     */
	private String place;

	@TableField("place_name")
	@Excel(name = "处/室")
	private String placeName;

	/**
	 * 部门 部门(单位）
	 */
	private String department;




    /**
     * 班组
     */
	private String team;

	@TableField("team_name")
	@Excel(name = "班组")
	private String teamName;

	@Excel(name = "职务（岗位）")
	private String post;

    /**
     * 岗位类别
     */
	@TableField("post_type")
	@Excel(name = "岗位类别")
	private String postType;

	@TableField("labor_type")
	@Excel(name = "用工类型",width = 20)
	private String laborType;
	/**
	 * 创建时间
	 */
	@TableField("create_date")
	private Date createDate;

	/**
	 * 创建方式
	 */
	@TableField("create_type")
	private String createType;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public String getEmpCode() {
		return empCode;
	}

	public void setEmpCode(String empCode) {
		this.empCode = empCode;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public String getPlaceName() {
		return placeName;
	}

	public void setPlaceName(String placeName) {
		this.placeName = placeName;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getTeam() {
		return team;
	}

	public void setTeam(String team) {
		this.team = team;
	}

	public String getTeamName() {
		return teamName;
	}

	public void setTeamName(String teamName) {
		this.teamName = teamName;
	}

	public String getPostType() {
		return postType;
	}

	public void setPostType(String postType) {
		this.postType = postType;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getCreateType() {
		return createType;
	}

	public void setCreateType(String createType) {
		this.createType = createType;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getErpCode() {
		return erpCode;
	}

	public void setErpCode(String erpCode) {
		this.erpCode = erpCode;
	}

	public String getLaborType() {
		return laborType;
	}

	public void setLaborType(String laborType) {
		this.laborType = laborType;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Employee{" +
			"id=" + id +
			", empName=" + empName +
			", empCode=" + empCode +
			", department=" + department +
			", team=" + team +
			", postType=" + postType +
			"}";
	}
}
